package com.tiancheng.trade.payment.mapper;

import com.tiancheng.trade.payment.model.SettleMatchRefund;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author kellen
 * @date 2021/2/2
 */
@Repository
public interface SettleMatchRefundMapper extends TYBaseMapper<SettleMatchRefund> {
    Integer saveBatch(@Param("list") List<SettleMatchRefund> list);

    List<Map<String, Object>> findByRefundFlowIds(@Param("list") List<String> refundFlowIds, @Param("settleStatus") String settleStatus);
    List<Map<String, Object>> findApprFailAndDistSecFlowDetail(@Param("list") List<String> refundFlowIds);
}
